home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Top 200 Programs
/
Top 200 Programs.iso
/
Bob8
/
THOMPSON
/
LIBERTY
/
PRODUCT
/
LB14W.EXE
/
RADIOBTN.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-11-15
|
1KB
|
51 lines
'demonstrates radiobuttons
'don't open a main window, please
nomainwin
WindowWidth = 520
WindowHeight = 220
groupbox #cfg, "Confirm File Operations:", 240, 20, 200, 140
radiobutton #cfg.Aalways, "Always", [alwaysConfirm], [nil], 260, 45, 130, 20
radiobutton #cfg.AwhenReplacing, "When Replacing", [whenReplacingConfirm], [nil], 260, 70, 130, 20
radiobutton #cfg.Anever, "Never", [neverConfirm], [nil], 260, 95, 130, 20
groupbox #cfg, "Confirm File Operations:", 20, 20, 200, 140
radiobutton #cfg.always, "Always", [alwaysConfirm], [nil], 40, 45, 130, 20
radiobutton #cfg.whenReplacing, "When Replacing", [whenReplacingConfirm], [nil], 40, 70, 130, 20
radiobutton #cfg.never, "Never", [neverConfirm], [nil], 40, 95, 130, 20
button #cfg, " &OK ", [cfgOk], UL, 450, 30
open "Action Confirmation - Setup" for dialog as #cfg
print #cfg, "trapclose [cfgOk]"
[inputLoop]
input h$
goto [inputLoop]
[alwaysConfirm]
status$ = "Always Confirm"
goto [inputLoop]
[whenReplacingConfirm]
status$ = "When Replacing Confirm"
goto [inputLoop]
[neverConfirm]
status$ = "Never Confirm"
goto [inputLoop]
[cfgOk]
confirm status$ + chr$(13) + "Save this configuration?"; answer$
'perform some sort of save for config here
close #cfg
end